﻿using System;
using SimpleInjector;
using YetAnotherChat.BackendCore.Injector;
using YetAnotherChat.ChatCore.Interfaces;
using YetAnotherChat.ChatUI.Classes;
using YetAnotherChat.EntityFrameworkDataAccess.RepositoryImp;
using YetAnotherChat.MemoryStorage.Imp;
using YetAnotherChat.MemoryStorage.Interfaces;

namespace YetAnotherChat.ChatUI
{
    public class ComponentRegistrationModule : IInjector
    {
        public void RegisterInjector(Container container)
        {
            container.Register<IMessageRepository, MessageRepository>();
            container.Register<IMemoryQueueStorage, MemoryQueueStorage>();
            container.Register<IChatMessagePersistenceService, ChatMessagePersistenceService>();
        }
    }
}